package com.leyou.trade.config;

import com.leyou.trade.interceptors.UserInterceptor;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.InterceptorRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;

/**
 * @ClassName : MvcConfig  //类名
 * @Description :   //描述
 * @Author : qingfeng  //作者
 * @Date: 2020-09-22 19:51  //时间
 */
@Configuration
public class MvcConfig implements WebMvcConfigurer {
    @Override
    public void addInterceptors(InterceptorRegistry registry) {
        registry.addInterceptor(new UserInterceptor())
            .excludePathPatterns("/pay/wx/notify");
    }
}
